import request from "@/utils/request.js"

// 用户注册
export function register(data) {
    return request({
        url: "/dev-api/user/userlogin/register",
        method: "POST",
        data: data
    })
}
export function addUser(data) {
    return request({
        url: "/ruoyi-background/users/add",
        method: "POST",
        data: data
    })
}

//登录
export let login = (userTel, userPass) => {
    return request({
        url: "/user/userlogin/login",
        method: "POST",
        data: {
            userTel, userPass
        }
    })
}